package org.hu.mapper;

import org.apache.ibatis.annotations.Param;
import org.hu.model.MeetingRoom;

import java.util.List;

public interface MeetingRoomMapper {

    /**
     * 查询所有会议室
     * @return List<MeetingRoom>
     */
    List<MeetingRoom> getAllMr();

    MeetingRoom getMrById(@Param("roomid") Integer id);

    Integer updateRoomDetail(MeetingRoom meetingRoom);

    Integer doAddMr(MeetingRoom meetingRoom);

    /**
     * 通过会议室状态查找会议室
     * @param i 0为空闲 1为已占用
     * @return
     */
    List<MeetingRoom> getMrByStatus(@Param("status") int i);
}
